package com.sjzd.weixin.bean;

/**
 *  保存普通access_token信息
 */
public class AccessToken {

    private static final AccessToken accessTokenInstance = new AccessToken();

    public static AccessToken getInstance() {
        return accessTokenInstance;
    }

    // 防止多线程时产生多个实例
    private AccessToken() {};

    // 获取的凭证
    private String access_token;
    // 凭证有效时间（2个小时）
    private int expires_in;

    public String getAccess_token() {
        return access_token;
    }

    public void setAccess_token(String access_token) {
        this.access_token = access_token;
    }

    public int getExpires_in() {
        return expires_in;
    }

    public void setExpires_in(int expires_in) {
        this.expires_in = expires_in;
    }
}
